package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.entity.SysSensitive;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface SysSensitiveService extends IService<SysSensitive> {

    /**
     * 判断评论是否违规
     * @param comment
     * @return
     */
    boolean filterSensitive(String comment);

    /**
     * 获取敏感词
     * @param
     * @return
     */
    Set<String> listSensitiveWords();


    /**
     * 后台敏感词列表查询
     * @param sensitiveWord
     * @param createPeople
     * @return
     */
    List<Map<String, Object>> tableList(String sensitiveWord,String createPeople);
}
